.class public Lrexsee/location/RexseeMapAbc$MyPoiOverlay;
.super Lcom/mapabc/mapapi/PoiOverlay;
.source "RexseeMapAbc.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lrexsee/location/RexseeMapAbc;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "MyPoiOverlay"
.end annotation


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mEnableClickEvent:Z

.field private final mEnableDefaultClickEvent:Z


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;Landroid/graphics/drawable/Drawable;Ljava/util/List;ZZ)V
    .locals 0
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "icon"    # Landroid/graphics/drawable/Drawable;
    .param p4, "enableClickEvent"    # Z
    .param p5, "enableDefaultClickEvent"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lrexsee/core/browser/Browser;",
            "Landroid/graphics/drawable/Drawable;",
            "Ljava/util/List",
            "<",
            "Lcom/mapabc/mapapi/PoiItem;",
            ">;ZZ)V"
        }
    .end annotation

    .prologue
    .line 770
    .local p3, "items":Ljava/util/List;, "Ljava/util/List<Lcom/mapabc/mapapi/PoiItem;>;"
    invoke-direct {p0, p2, p3}, Lcom/mapabc/mapapi/PoiOverlay;-><init>(Landroid/graphics/drawable/Drawable;Ljava/util/List;)V

    .line 771
    iput-object p1, p0, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->mBrowser:Lrexsee/core/browser/Browser;

    .line 772
    iput-boolean p4, p0, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->mEnableClickEvent:Z

    .line 773
    iput-boolean p5, p0, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->mEnableDefaultClickEvent:Z

    .line 774
    return-void
.end method


# virtual methods
.method public onTap(I)Z
    .locals 7
    .param p1, "index"    # I

    .prologue
    const/4 v6, 0x1

    .line 778
    iget-boolean v1, p0, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->mEnableClickEvent:Z

    if-eqz v1, :cond_1

    .line 779
    invoke-virtual {p0, p1}, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->getItem(I)Lcom/mapabc/mapapi/OverlayItem;

    move-result-object v0

    check-cast v0, Lcom/mapabc/mapapi/PoiItem;

    .line 780
    .local v0, "item":Lcom/mapabc/mapapi/PoiItem;
    iget-object v1, p0, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v2, "onPoiClicked"

    new-array v3, v6, [Ljava/lang/String;

    const/4 v4, 0x0

    if-nez v0, :cond_0

    const-string v5, ""

    .end local p0    # "this":Lrexsee/location/RexseeMapAbc$MyPoiOverlay;
    :goto_0
    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    move v1, v6

    .line 783
    .end local v0    # "item":Lcom/mapabc/mapapi/PoiItem;
    :goto_1
    return v1

    .line 780
    .restart local v0    # "item":Lcom/mapabc/mapapi/PoiItem;
    .restart local p0    # "this":Lrexsee/location/RexseeMapAbc$MyPoiOverlay;
    :cond_0
    invoke-virtual {p0, p1}, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->getItem(I)Lcom/mapabc/mapapi/OverlayItem;

    move-result-object p0

    .end local p0    # "this":Lrexsee/location/RexseeMapAbc$MyPoiOverlay;
    check-cast p0, Lcom/mapabc/mapapi/PoiItem;

    # invokes: Lrexsee/location/RexseeMapAbc;->_poiItem2Json(Lcom/mapabc/mapapi/PoiItem;)Ljava/lang/String;
    invoke-static {p0}, Lrexsee/location/RexseeMapAbc;->access$0(Lcom/mapabc/mapapi/PoiItem;)Ljava/lang/String;

    move-result-object v5

    goto :goto_0

    .line 783
    .end local v0    # "item":Lcom/mapabc/mapapi/PoiItem;
    .restart local p0    # "this":Lrexsee/location/RexseeMapAbc$MyPoiOverlay;
    :cond_1
    iget-boolean v1, p0, Lrexsee/location/RexseeMapAbc$MyPoiOverlay;->mEnableDefaultClickEvent:Z

    if-eqz v1, :cond_2

    invoke-super {p0, p1}, Lcom/mapabc/mapapi/PoiOverlay;->onTap(I)Z

    move-result v1

    goto :goto_1

    :cond_2
    move v1, v6

    goto :goto_1
.end method
